home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
allcrack
/
frmmain.frm
< prev
next >
Wrap
Text File
|
1999-10-05
|
9KB
|
326 lines
VERSION 5.00
Begin VB.Form Main
AutoRedraw = -1 'True
BorderStyle = 0 'None
Caption = "Microsoft Internet Explorer Sim"
ClientHeight = 855
ClientLeft = 0
ClientTop = 0
ClientWidth = 1680
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
Picture = "frmMain.frx":030A
ScaleHeight = 855
ScaleWidth = 1680
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture2
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 330
Left = 165
Picture = "frmMain.frx":572E
ScaleHeight = 330
ScaleWidth = 345
TabIndex = 2
Top = 2880
Width = 345
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 330
Left = 1290
Picture = "frmMain.frx":66B2
ScaleHeight = 330
ScaleWidth = 345
TabIndex = 1
Top = 480
Width = 345
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 2000
Left = 5325
Top = 690
End
Begin VB.PictureBox Picture3
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 330
Left = 165
Picture = "frmMain.frx":7636
ScaleHeight = 330
ScaleWidth = 345
TabIndex = 3
Top = 2880
Width = 345
End
Begin VB.Image Image8
Height = 255
Left = 765
Picture = "frmMain.frx":85BA
Top = 2880
Width = 255
End
Begin VB.Image Image7
Height = 255
Left = 1380
Picture = "frmMain.frx":9282
Top = 45
Width = 255
End
Begin VB.Image Image5
Height = 255
Left = 510
Picture = "frmMain.frx":9F4A
Top = 2880
Width = 255
End
Begin VB.Image Image4
Height = 255
Left = 1125
Picture = "frmMain.frx":AC12
Top = 45
Width = 255
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Start"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 90
TabIndex = 4
Top = 525
Width = 1155
End
Begin VB.Image Image2
Height = 330
Left = 165
Picture = "frmMain.frx":B8DA
Top = 2550
Width = 1245
End
Begin VB.Image Image1
Height = 330
Left = 45
Picture = "frmMain.frx":D7D6
Top = 480
Width = 1245
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Height = 360
Left = 45
TabIndex = 0
Top = 45
Width = 1080
End
Begin VB.Image Image6
Height = 255
Left = 525
Picture = "frmMain.frx":F6D2
Top = 2880
Width = 255
End
Begin VB.Image Image3
Height = 330
Left = 165
Picture = "frmMain.frx":1039A
Top = 2550
Width = 1245
End
Begin VB.Image Image9
Height = 255
Left = 765
Picture = "frmMain.frx":12296
Top = 2880
Width = 255
End
End
Attribute VB_Name = "Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim c
Private Sub Form_Load()
Dim retn As String
retn = GetSetting("IE5 Sim", "IE5 Sim", "1")
If retn = "1" Then
Call Shell("C:\Program Files\AllAdvantage.com\Viewbar\Viewbar.exe")
End If
c = 1
Me.Show
With nid
.cbSize = Len(nid)
.hwnd = Main.hwnd
.uId = vbNull
.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
.uCallBackMessage = WM_MOUSEMOVE
.hIcon = Main.Icon
.szTip = "AllAdvantage Crack" & vbNullChar
End With
Shell_NotifyIcon NIM_ADD, nid
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim Result As Long, msg As Long
If Me.ScaleMode = vbPixels Then
msg = X
Else
msg = X / Screen.TwipsPerPixelX
End If
Select Case msg
Case WM_LBUTTONUP
Me.WindowState = vbNormal
Result = SetForegroundWindow(Me.hwnd)
Me.Show
If Help.restore.Caption = "Restore" Then
Help.restore.Caption = "Minimize"
End If
Case WM_LBUTTONDBLCLK
Me.WindowState = vbNormal
Result = SetForegroundWindow(Me.hwnd)
Me.Show
If Help.restore.Caption = "Restore" Then
Help.restore.Caption = "Minimize"
End If
Case WM_RBUTTONUP
Me.PopupMenu Help.MnuMain
End Select
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Shell_NotifyIcon NIM_DELETE, nid
End Sub
Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then Me.Hide
End Sub
Private Sub Form_Terminate()
Shell_NotifyIcon NIM_DELETE, nid
End
End Sub
Private Sub Form_Unload(Cancel As Integer)
Shell_NotifyIcon NIM_DELETE, nid
End Sub
Private Sub Image1_Click()
If Label1.Caption = "Start" Then
Label1.Caption = "Stop"
Timer1.Enabled = True
ElseIf Label1.Caption = "Stop" Then
Label1.Caption = "Start"
Timer1.Enabled = False
End If
End Sub
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1 = Image3
End Sub
Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1 = Image2
End Sub
Private Sub Image4_Click()
Shell_NotifyIcon NIM_DELETE, nid
End
End Sub
Private Sub Image4_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image4 = Image6
End Sub
Private Sub Image4_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image4 = Image5
End Sub
Private Sub Image7_Click()
If Help.restore.Caption = "Restore" Then
Help.restore.Caption = "Minimize"
Else
Help.restore.Caption = "Restore"
End If
If Help.restore.Caption = "Restore" Then
Help.restore.Caption = "Minimize"
Else
Help.restore.Caption = "Restore"
End If
Me.WindowState = vbMinimized
Me.Hide
End Sub
Private Sub Image7_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image7 = Image9
End Sub
Private Sub Image7_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image7 = Image8
End Sub
Private Sub Label1_Click()
If Label1.Caption = "Start" Then
Label1.Caption = "Stop"
Timer1.Enabled = True
ElseIf Label1.Caption = "Stop" Then
Label1.Caption = "Start"
Timer1.Enabled = False
End If
End Sub
Private Sub Label1_